import { lazy } from "react";
import {createBrowserRouter} from 'react-router-dom'
let Home=lazy(()=>import('../pages/home/Index'))
let MainLayout=lazy(()=>import('../pages/mianLayout/Index'))
let My=lazy(()=>import('../pages/my/Index'))

let routes=createBrowserRouter([
    {
        path:'/',
        element:<MainLayout></MainLayout>,
        children:[
            {
                path:'/home',
                element:<Home></Home>
            },
            {
                path:'/my',
                element:<My></My>
            }
        ]
    }
])

export default routes